package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 订单信息对象 tb_order
 * 
 * @author ruoyi
 * @date 2022-06-16
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单号 */
    private Long orderId;

    /** 订单金额 */
    @Excel(name = "原价")
    private BigDecimal orPrice;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private BigDecimal payPrice;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String username;

    /** 收货人手机号 */
    @Excel(name = "收货人手机号")
    private String tele;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String address;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private String isDel;

    /** 书籍编号 */
    @Excel(name = "书籍编号")
    private Long bookId;

    public Long getpNum() {
        return pNum;
    }

    public void setpNum(Long pNum) {
        this.pNum = pNum;
    }

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long pNum;


    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public BigDecimal getOrPrice() {
        return orPrice;
    }

    public void setOrPrice(BigDecimal orPrice) {
        this.orPrice = orPrice;
    }

    public BigDecimal getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(BigDecimal payPrice) {
        this.payPrice = payPrice;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTele(String tele) 
    {
        this.tele = tele;
    }

    public String getTele() 
    {
        return tele;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderPrice", getOrPrice())
            .append("payPrice", getPayPrice())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("tele", getTele())
            .append("address", getAddress())
            .append("orderStatus", getOrderStatus())
            .append("orderTime", getOrderTime())
            .append("isDel", getIsDel())
            .append("bookId", getBookId())
            .append("pNum", getpNum())
            .toString();
    }
}
